package com.xxx.borrow.ui.loan.activity;

import android.app.Activity;
import android.content.Intent;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.xxx.borrow.R;
import com.xxx.borrow.base.activity.BaseTitleActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class MyPaymentActivity extends BaseTitleActivity {

    public static void actionStart(Activity activity) {
        Intent intent = new Intent(activity, MyPaymentActivity.class);
        activity.startActivity(intent);
    }

    @BindView(R.id.pay_money)
    TextView mPayAmount;
    @BindView(R.id.pay_day)
    TextView mPayDay;
    @BindView(R.id.pay_date)
    TextView mPayDate;

    @BindView(R.id.main_refresh)
    SwipeRefreshLayout mRefresh;
    @BindView(R.id.main_recycler)
    RecyclerView mRecycler;
    @BindView(R.id.main_not_data)
    LinearLayout mNotData;


    @Override
    protected String initTitle() {
        return "我的还款";
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_my_payment;
    }

    @Override
    protected void initData() {

    }

    @OnClick({R.id.check_order, R.id.before_clean, R.id.repay_date})
    public void OnClick(View view) {
        switch (view.getId()) {
            case R.id.check_order:
                CheckDetailsActivity.actionStart(this);
                break;
            case R.id.before_clean://提前结清
                SettlementActivity.actionStart(this);
                break;
            case R.id.repay_date://偿还本期
                RepayCurrentActivity.actionStart(this);
                break;
        }
    }
}
